package cn.class2.demo5.main

import cn.class2.demo5.{AbsParent, Parent}

/**
  * Created by lzd on 2018/11/13.
  */
class Demo1 extends Parent{
  override def eat(): Unit ={
    super.eat()
    println("demo1 end")
  }


  override def sleep(): Unit = {
    super.sleep()
    println("demo1 end")
  }
}

object Demo1{
  def main(args: Array[String]): Unit = {
    val p = new Demo1
    p.eat()
    p.sleep()
  }
}